package com.zmovie.framework.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 
 * @TableName actor
 */
@TableName(value ="actor")
@Data
@ApiModel("演员")
public class Actor implements Serializable {
    /**
     * 演员id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("演员id")
    private Integer id;

    /**
     * 演员姓名
     */
    @ApiModelProperty("演员姓名")
    @NotBlank(message = "演员姓名不能为空")
    private String name;

    /**
     * 演员性别 0-男 1-女
     */
    @ApiModelProperty("演员性别 0-男 1-女")
    @NotNull(message = "演员性别不能为空")
    private Integer gender;

    @ApiModelProperty("演员图片")
    private String picture;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}